type="leader";
document.addEventListener("DOMContentLoaded", function() {var type=localStorage.getItem("userType");
console.log(type);
if(type=="user"){
  document.getElementById('managementLi').innerHTML = '';
  document.getElementById('warehouseLi').innerHTML = '';
  
}else if(type=="admin"){
  document.getElementById('submitLi').innerHTML = '';
  document.getElementById('warehouseLi').innerHTML = '';
}
});
document.addEventListener("DOMContentLoaded", function() {
    // 获取要添加点击事件的元素
    var managementLink = document.getElementById('management');

    // 为该元素添加点击事件处理器
    managementLink.addEventListener('click', function() {
      // 点击时执行跳转
      window.location.href = '../html/management.html';
    });
  });
  document.addEventListener("DOMContentLoaded", function() {
    // 获取要添加点击事件的元素
    var managementLink = document.getElementById('index');

    // 为该元素添加点击事件处理器
    managementLink.addEventListener('click', function() {
      // 点击时执行跳转
      window.location.href = '../html/index.html';
    });
  });
  document.addEventListener("DOMContentLoaded", function() {
    // 获取要添加点击事件的元素
    var managementLink = document.getElementById('submit');

    // 为该元素添加点击事件处理器
    managementLink.addEventListener('click', function() {
      // 点击时执行跳转
      window.location.href = '../html/submit.html';
    });
  });

  document.addEventListener("DOMContentLoaded", function() {
    // 获取要添加点击事件的元素
    var managementLink = document.getElementById('warehouse');

    // 为该元素添加点击事件处理器
    managementLink.addEventListener('click', function() {
      // 点击时执行跳转
      window.location.href = '../html/warehouse.html';
    });
  });
  document.addEventListener("DOMContentLoaded", function() {
    // 获取要添加点击事件的元素
    var managementLink = document.getElementById('province');

    // 为该元素添加点击事件处理器
    managementLink.addEventListener('click', function() {
        // 点击时执行跳转
        window.location.href = '../html/provincialStatistic.html';
    });
});